﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<HTML lang="en">

	<HEAD>
		<META content="IE=10.000" http-equiv="X-UA-Compatible">

		<META charset="utf-8">
		<META name="viewport" content="width=device-width, initial-scale=1.0">
		<TITLE>运营管理后台</TITLE>
		<!-- CSS -->
		<LINK href="css/OpenSans.css" rel="stylesheet" type="text/css">
		<LINK href="css/bootstrap.min.css" rel="stylesheet">
		<LINK href="css/jasny-bootstrap.min.css" rel="stylesheet">
		<LINK href="css/font-awesome.css" rel="stylesheet" type="text/css">
		<LINK href="css/daterangepicker-bs3.css" rel="stylesheet" type="text/css">
		<LINK href="css/datepicker.css" rel="stylesheet" type="text/css">
		<LINK href="css/select2.css" rel="stylesheet" type="text/css">
		<LINK href="css/select2-bootstrap.css" rel="stylesheet" type="text/css">
		<LINK href="css/uniform.default.min.css" rel="stylesheet" type="text/css">
		<!--<link href="scripts/css/prettify.css" rel="stylesheet" type="text/css" />
        <link href="http://cdnjs.cloudflare.com/ajax/libs/datatables/1.10.10/css/jquery.dataTables.min.css" rel="stylesheet" type="text/css" />-->
		<LINK href="css/fullcalendar.css" rel="stylesheet">
		<LINK href="css/fullcalendar.print.css" rel="stylesheet" media="print">
		<LINK href="css/toastr.min.css" rel="stylesheet">
		<LINK href="css/ark.css" rel="stylesheet" type="text/css">
		<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
		<!--[if lt IE 9]>
            <script src="/manager/js/html5shiv.js"></script>
            <script src="/manager/js/respond.min.js"></script>
        <![endif]-->

		<SCRIPT src="js/jquery.min.js"></SCRIPT>

		<META name="GENERATOR" content="MSHTML 10.00.9200.17457">
	</HEAD>

	<BODY class="cover">
		<DIV class="wrapper">
			<!-- HEAD NAV -->
			<DIV class="navbar navbar-default navbar-static-top navbar-main" role="navigation">
				<DIV class="navbar-header">
					<A class="navbar-brand" href="#">
						运营管理后台</A>
				</DIV>
				<UL class="nav navbar-nav navbar-left">
					<LI class="sidemenu-switch">
						<A href="#">
							<SPAN class="sr-only">Toggle navigation</SPAN>
							<I class="fa fa-bars"></I>
						</A>
					</LI>
				</UL>
				<UL class="nav navbar-nav navbar-right">
					<LI class="visible-xs">
						<A class="navbar-toggle" href="#" data-toggle="collapse" data-target=".sidebar">
							<SPAN class="sr-only">Toggle 
  navigation</SPAN>
							<I class="fa fa-bars"></I> </A>
					</LI>
					<LI class="dropdown">
						<A class="dropdown-toggle avatar pull-right" href="#" data-toggle="dropdown">
							<SPAN class="hidden-small">管理员<B 
  class="caret"></B></SPAN> </A>
						<UL class="dropdown-menu pull-right">
							<LI>
								<A href="#">
									<I class="fa fa-sign-out"></I>退出登录</A>
							</LI>
						</UL>
					</LI>
				</UL>
			</DIV>
			<!-- END: HEAD NAV -->
			<!-- BODY -->
			<DIV class="body">
				<!-- SIDEBAR -->
				<!-- SIDEBAR -->
				<ASIDE class="sidebar">
					<UL class="nav nav-stacked">
						<LI class="menu">
							<A class="menu-toggle" href="#">
								<I class="fa fa-users fa-fw"></I>
								<SPAN class="item-label">玩家管理<I 
  class="caret"></I></SPAN>
							</A>
							<UL class="submenu">
								<LI class="active">
									<A href="user-list.html">
										<I class="fa fa-sort-alpha-asc fa-fw"></I>
										<SPAN>玩家列表</SPAN>
									</A>
								</LI>
								<LI>
									<A href="usergame-list.html">
										<I class="fa fa-list fa-fw"></I>
										<SPAN>玩家游戏统计</SPAN>
									</A>
								</LI>
								<LI>
									<A href="user-gold.html">
										<I class="fa fa-support fa-fw"></I>
										<SPAN>金币记录</SPAN>
									</A>
								</LI>
							</UL>
						</LI>
					
						
						<LI class="menu ">
							<A class="menu-toggle" href="#/user/users">
								<I class="fa fa-user fa-fw"></I>
								<SPAN class="item-label">系统用户<I 
  class="caret"></I></SPAN>
							</A>
							<UL class="submenu">
								<LI>
									<A href="user-manage.html">
										<I class="fa fa-sort-alpha-asc fa-fw"></I>
										<SPAN>用户管理</SPAN>
									</A>
								</LI>
								<LI>
									<A href="#">
										<I class="fa fa-th-large fa-fw"></I>
										<SPAN>角色与权限</SPAN>
									</A>
								</LI>
							</UL>
						</LI>
						<LI class="menu ">
							<A class="menu-toggle" href="#/user/users">
								<I class="fa fa-phone fa-fw"></I>
								<SPAN class="item-label">客户服务<I 
  class="caret"></I></SPAN>
							</A>
							<UL class="submenu">
								<LI>
									<A href="#">
										<I class="fa fa-credit-card fa-fw"></I>
										<SPAN>会员反馈处理</SPAN>
									</A>
								</LI>
							</UL>
						</LI>
						<LI class="menu ">
							<A class="menu-toggle" href="#/user/users">
								<I class="fa fa-adn fa-fw"></I>
								<SPAN class="item-label">应用管理<I 
  class="caret"></I></SPAN>
							</A>
							<UL class="submenu">
								<LI>
									<A href="#/app/notices">
										<I class="fa fa-bullhorn fa-fw"></I>
										<SPAN>公告设置</SPAN>
									</A>
								</LI>
								<LI>
									<A href="#/app/apps">
										<I class="fa fa-android fa-fw"></I>
										<SPAN>版本管理</SPAN>
									</A>
								</LI>
							</UL>
						</LI>
						<LI class="menu ">
							<A class="menu-toggle" href="#/player/players#">
								<I class="fa fa-header fa-fw"></I>
								<SPAN class="item-label">活动管理<I 
  class="caret"></I></SPAN>
							</A>
							<UL class="submenu">
								<LI>
									<A href="#/activity/activities">
										<I class="fa fa-sort-alpha-asc fa-fw"></I>
										<SPAN>活动列表</SPAN>
									</A>
								</LI>
							</UL>
						</LI>
						<LI class="menu ">
							<A class="menu-toggle" href="#/player/players#">
								<I class="fa fa-bar-chart-o fa-fw"></I>
								<SPAN class="item-label">数据统计<I class="caret"></I></SPAN>
							</A>
							<UL class="submenu">
								<LI>
									<A href="richest-player.html">
										<I class="fa fa-users fa-fw"></I>
										<SPAN>玩家排名统计</SPAN>
									</A>
								</LI>
								
							</UL>
						</LI>
						<LI class="menu ">
							<A class="menu-toggle" href="#/player/players#">
								<I class="fa fa-sliders fa-fw"></I>
								<SPAN class="item-label">系统管理<I 
  class="caret"></I></SPAN>
							</A>
							<UL class="submenu">
								<LI>
									<A href="#/system/logs">
										<I class="fa fa-history fa-fw"></I>
										<SPAN>系统日志</SPAN>
									</A>
								</LI>
								<LI>
									<A href="#/player/players#">
										<I class="fa fa-cloud fa-fw"></I>
										<SPAN>系统监控</SPAN>
									</A>
								</LI>
							</UL>
						</LI>
					</UL>
				</ASIDE>
				<!-- END: SIDEBAR -->
				<!-- END: SIDEBAR -->
				<SECTION class="content">
					<OL class="breadcrumb">
						<LI>
							<I class="fa fa-square fa-fw"></I>房间管理</LI>
					</OL>
					<!-- CONTENT -->
					<DIV class="main-content">
						<UL class="nav nav-tabs" role="tablist">
							<LI class="active">
								<A href="#game/games">所有区域</A>
							</LI>
							<LI>
								<A href="#game/games/heishan">黑山</A>
							</LI>
							<LI>
								<A href="#game/games/quyang">曲阳</A>
							</LI>
						</UL>
						<BR>
						<FORM class="form-horizontal">
							<DIV class="form-group">
								<DIV class="col-md-3">
									<SELECT name="name" class="form-control" placeholder="游戏">
										<OPTION value="">全部游戏</OPTION>
										<OPTION value="majiang">麻将</OPTION>
										<OPTION value="paijiu">牌九</OPTION>
									</SELECT>
								</DIV>
								<DIV class="col-md-3">
									<SELECT name="status" class="form-control" placeholder="房间状态">
										<OPTION value="-1">全部状态</OPTION>
										<OPTION value="0">未开始</OPTION>
										<OPTION value="1">进行中</OPTION>
										<OPTION value="2">已结束</OPTION>
									</SELECT>
								</DIV>
								<DIV class="col-md-3">
									<INPUT name="num" class="form-control" type="number" placeholder="房间号" value="">
								</DIV>
								<DIV class="col-md-3">
									<INPUT name="id" class="form-control" type="number" placeholder="创建人帐号" value="">
								</DIV>
							</DIV>
							<DIV class="form-group">
								<DIV class="col-md-3">
									<INPUT name="timeStart" class="form-control datepicker" id="ark-ex-datepicker" type="text" placeholder="游戏时间" value="" data-date-format="yyyy-mm-dd">
								</DIV>
								<DIV class="col-md-3">
									<INPUT name="timeEnd" class="form-control datepicker" id="ark-ex-datepicker" type="text" placeholder="结束时间" value="" data-date-format="yyyy-mm-dd">
								</DIV>
								<DIV class="col-md-3 col-md-offset-3  text-right">
									<BUTTON class="btn btn-primary">搜索</BUTTON>
								</DIV>
							</DIV>
							<DIV class="form-group">
								<DIV class="col-md-6">记录数：
									<LABEL>119</LABEL> </DIV>
								<DIV class="col-md-6 text-right"></DIV>
							</DIV>
						</FORM>
						<DIV class="row">
							<DIV class="col-md-12" role="dataResult">
								<TABLE class="table table-hover table-striped">
									<THEAD>
										<TR>
											<TH>Id</TH>
											<TH>区域</TH>
											<TH>游戏</TH>
											<TH>房间</TH>
											<TH>创建人</TH>
											<TH>昵称</TH>
											<TH>圈/盘数</TH>
											<TH>消耗房卡</TH>
											<TH>状态</TH>
											<TH></TH>
											<TH>开房时间</TH>
											<TH>开始时间</TH>
											<TH>结束时间</TH>
											<TH>操作</TH>
										</TR>
									</THEAD>
									<TBODY>
										<TR>
											<TD>119</TD>
											<TD>曲阳</TD>
											<TD>麻将</TD>
											<TD>069833
												<BR>
											</TD>
											<!-- filter.getMajiangGameRules(item.rules, item.areaId) -->

											<TD>1033
												<BR>104535</TD>
											<TD>宇文赌圣</TD>
											<TD>8</TD>
											<TD>3</TD>
											<TD>
												<SPAN class="label label-default">已结束</SPAN>
											</TD>
											<TD>未开始解散</TD>
											<TD>2018-03-21
												<BR>17:08:42</TD>
											<TD></TD>
											<TD>2018-03-21
												<BR>17:38:42</TD>
											<TD> &nbsp;&nbsp;
												<A href="#game/game/119/detail">明细</A>
											</TD>
										</TR>
										<TR>
											<TD>118</TD>
											<TD>曲阳</TD>
											<TD>麻将</TD>
											<TD>194055
												<BR>
											</TD>
											<!-- filter.getMajiangGameRules(item.rules, item.areaId) -->

											<TD>1033
												<BR>104535</TD>
											<TD>宇文赌圣</TD>
											<TD>8</TD>
											<TD>3</TD>
											<TD>
												<SPAN class="label label-default">已结束</SPAN>
											</TD>
											<TD>未开始解散</TD>
											<TD>2018-03-21
												<BR>10:56:16</TD>
											<TD></TD>
											<TD>2018-03-21
												<BR>11:26:17</TD>
											<TD> &nbsp;&nbsp;
												<A href="#game/game/118/detail">明细</A>
											</TD>
										</TR>
										<TR>
											<TD>117</TD>
											<TD>曲阳</TD>
											<TD>麻将</TD>
											<TD>737048
												<BR>
											</TD>
											<!-- filter.getMajiangGameRules(item.rules, item.areaId) -->

											<TD>1006
												<BR>109152</TD>
											<TD>轩辕好运</TD>
											<TD>8</TD>
											<TD>3</TD>
											<TD>
												<SPAN class="label label-default">已结束</SPAN>
											</TD>
											<TD>房主解散</TD>
											<TD>2018-03-21
												<BR>10:39:49</TD>
											<TD></TD>
											<TD>2018-03-21
												<BR>10:41:23</TD>
											<TD> &nbsp;&nbsp;
												<A href="#game/game/117/detail">明细</A>
											</TD>
										</TR>
										<TR>
											<TD>116</TD>
											<TD>曲阳</TD>
											<TD>麻将</TD>
											<TD>535288
												<BR>
											</TD>
											<!-- filter.getMajiangGameRules(item.rules, item.areaId) -->

											<TD>1033
												<BR>104535</TD>
											<TD>宇文赌圣</TD>
											<TD>8</TD>
											<TD>3</TD>
											<TD>
												<SPAN class="label label-default">已结束</SPAN>
											</TD>
											<TD>房主解散</TD>
											<TD>2018-03-21
												<BR>10:36:27</TD>
											<TD></TD>
											<TD>2018-03-21
												<BR>10:56:03</TD>
											<TD> &nbsp;&nbsp;
												<A href="#game/game/116/detail">明细</A>
											</TD>
										</TR>
										<TR>
											<TD>115</TD>
											<TD>曲阳</TD>
											<TD>麻将</TD>
											<TD>839336
												<BR>
											</TD>
											<!-- filter.getMajiangGameRules(item.rules, item.areaId) -->

											<TD>1033
												<BR>104535</TD>
											<TD>宇文赌圣</TD>
											<TD>8</TD>
											<TD>3</TD>
											<TD>
												<SPAN class="label label-default">已结束</SPAN>
											</TD>
											<TD>未开始解散</TD>
											<TD>2018-03-20
												<BR>15:14:55</TD>
											<TD></TD>
											<TD>2018-03-20
												<BR>15:44:55</TD>
											<TD> &nbsp;&nbsp;
												<A href="#game/game/115/detail">明细</A>
											</TD>
										</TR>
										<TR>
											<TD>114</TD>
											<TD>曲阳</TD>
											<TD>麻将</TD>
											<TD>958221
												<BR>
											</TD>
											<!-- filter.getMajiangGameRules(item.rules, item.areaId) -->

											<TD>1033
												<BR>104535</TD>
											<TD>宇文赌圣</TD>
											<TD>8</TD>
											<TD>3</TD>
											<TD>
												<SPAN class="label label-default">已结束</SPAN>
											</TD>
											<TD>超时解散</TD>
											<TD>2018-03-20
												<BR>14:31:51</TD>
											<TD>2018-03-20
												<BR>14:32:17</TD>
											<TD>2018-03-20
												<BR>15:08:36</TD>
											<TD> &nbsp;&nbsp;
												<A href="#game/game/114/detail">明细</A>
											</TD>
										</TR>
										<TR>
											<TD>113</TD>
											<TD>曲阳</TD>
											<TD>麻将</TD>
											<TD>449494
												<BR>
											</TD>
											<!-- filter.getMajiangGameRules(item.rules, item.areaId) -->

											<TD>1029
												<BR>102059</TD>
											<TD>夏侯不输</TD>
											<TD>8</TD>
											<TD>3</TD>
											<TD>
												<SPAN class="label label-default">已结束</SPAN>
											</TD>
											<TD>正常结束</TD>
											<TD>2018-03-20
												<BR>09:56:04</TD>
											<TD>2018-03-20
												<BR>10:02:44</TD>
											<TD>2018-03-20
												<BR>10:22:00</TD>
											<TD> &nbsp;&nbsp;
												<A href="#game/game/113/detail">明细</A>
											</TD>
										</TR>
										<TR>
											<TD>112</TD>
											<TD>曲阳</TD>
											<TD>麻将</TD>
											<TD>135444
												<BR>
											</TD>
											<!-- filter.getMajiangGameRules(item.rules, item.areaId) -->

											<TD>1030
												<BR>102057</TD>
											<TD>上官赌圣</TD>
											<TD>8</TD>
											<TD>3</TD>
											<TD>
												<SPAN class="label label-default">已结束</SPAN>
											</TD>
											<TD>申请解散</TD>
											<TD>2018-03-19
												<BR>13:29:50</TD>
											<TD>2018-03-19
												<BR>13:30:22</TD>
											<TD>2018-03-19
												<BR>13:38:04</TD>
											<TD> &nbsp;&nbsp;
												<A href="#game/game/112/detail">明细</A>
											</TD>
										</TR>
										<TR>
											<TD>111</TD>
											<TD>曲阳</TD>
											<TD>牌九</TD>
											<TD>882432
												<BR>
											</TD>
											<!-- filter.getMajiangGameRules(item.rules, item.areaId) -->

											<TD>1030
												<BR>102057</TD>
											<TD>上官赌圣</TD>
											<TD>12</TD>
											<TD>3</TD>
											<TD>
												<SPAN class="label label-default">已结束</SPAN>
											</TD>
											<TD>申请解散</TD>
											<TD>2018-03-19
												<BR>13:26:57</TD>
											<TD>2018-03-19
												<BR>13:27:16</TD>
											<TD>2018-03-19
												<BR>13:27:56</TD>
											<TD> &nbsp;&nbsp;
												<A href="#game/game/111/detail">明细</A>
											</TD>
										</TR>
										<TR>
											<TD>110</TD>
											<TD>曲阳</TD>
											<TD>牌九</TD>
											<TD>389231
												<BR>
											</TD>
											<!-- filter.getMajiangGameRules(item.rules, item.areaId) -->

											<TD>1030
												<BR>102057</TD>
											<TD>上官赌圣</TD>
											<TD>12</TD>
											<TD>3</TD>
											<TD>
												<SPAN class="label label-default">已结束</SPAN>
											</TD>
											<TD>未开始解散</TD>
											<TD>2018-03-19
												<BR>10:47:27</TD>
											<TD></TD>
											<TD>2018-03-19
												<BR>11:17:27</TD>
											<TD> &nbsp;&nbsp;
												<A href="#game/game/110/detail">明细</A>
											</TD>
										</TR>
										<TR>
											<TD>109</TD>
											<TD>曲阳</TD>
											<TD>牌九</TD>
											<TD>409105
												<BR>
											</TD>
											<!-- filter.getMajiangGameRules(item.rules, item.areaId) -->

											<TD>1030
												<BR>102057</TD>
											<TD>上官赌圣</TD>
											<TD>12</TD>
											<TD>3</TD>
											<TD>
												<SPAN class="label label-default">已结束</SPAN>
											</TD>
											<TD>未开始解散</TD>
											<TD>2018-03-19
												<BR>09:58:31</TD>
											<TD></TD>
											<TD>2018-03-19
												<BR>10:28:31</TD>
											<TD> &nbsp;&nbsp;
												<A href="#game/game/109/detail">明细</A>
											</TD>
										</TR>
										<TR>
											<TD>108</TD>
											<TD>曲阳</TD>
											<TD>麻将</TD>
											<TD>910002
												<BR>
											</TD>
											<!-- filter.getMajiangGameRules(item.rules, item.areaId) -->

											<TD>1030
												<BR>102057</TD>
											<TD>上官赌圣</TD>
											<TD>8</TD>
											<TD>3</TD>
											<TD>
												<SPAN class="label label-default">已结束</SPAN>
											</TD>
											<TD>房主解散</TD>
											<TD>2018-03-19
												<BR>09:41:51</TD>
											<TD></TD>
											<TD>2018-03-19
												<BR>09:58:16</TD>
											<TD> &nbsp;&nbsp;
												<A href="#game/game/108/detail">明细</A>
											</TD>
										</TR>
										<TR>
											<TD>107</TD>
											<TD>曲阳</TD>
											<TD>牌九</TD>
											<TD>869106
												<BR>
											</TD>
											<!-- filter.getMajiangGameRules(item.rules, item.areaId) -->

											<TD>1030
												<BR>102057</TD>
											<TD>上官赌圣</TD>
											<TD>12</TD>
											<TD>3</TD>
											<TD>
												<SPAN class="label label-default">已结束</SPAN>
											</TD>
											<TD>房主解散</TD>
											<TD>2018-03-19
												<BR>09:40:20</TD>
											<TD></TD>
											<TD>2018-03-19
												<BR>09:40:35</TD>
											<TD> &nbsp;&nbsp;
												<A href="#game/game/107/detail">明细</A>
											</TD>
										</TR>
										<TR>
											<TD>106</TD>
											<TD>曲阳</TD>
											<TD>牌九</TD>
											<TD>363206
												<BR>
											</TD>
											<!-- filter.getMajiangGameRules(item.rules, item.areaId) -->

											<TD>1030
												<BR>102057</TD>
											<TD>上官赌圣</TD>
											<TD>12</TD>
											<TD>3</TD>
											<TD>
												<SPAN class="label label-default">已结束</SPAN>
											</TD>
											<TD>房主解散</TD>
											<TD>2018-03-19
												<BR>09:40:02</TD>
											<TD></TD>
											<TD>2018-03-19
												<BR>09:40:07</TD>
											<TD> &nbsp;&nbsp;
												<A href="#game/game/106/detail">明细</A>
											</TD>
										</TR>
										<TR>
											<TD>105</TD>
											<TD>曲阳</TD>
											<TD>麻将</TD>
											<TD>286238
												<BR>
											</TD>
											<!-- filter.getMajiangGameRules(item.rules, item.areaId) -->

											<TD>1023
												<BR>101726</TD>
											<TD>刘海涛</TD>
											<TD>8</TD>
											<TD>3</TD>
											<TD>
												<SPAN class="label label-default">已结束</SPAN>
											</TD>
											<TD>房主解散</TD>
											<TD>2018-03-16
												<BR>15:46:39</TD>
											<TD></TD>
											<TD>2018-03-16
												<BR>15:46:53</TD>
											<TD> &nbsp;&nbsp;
												<A href="#game/game/105/detail">明细</A>
											</TD>
										</TR>
										<TR>
											<TD>104</TD>
											<TD>曲阳</TD>
											<TD>牌九</TD>
											<TD>123047
												<BR>
											</TD>
											<!-- filter.getMajiangGameRules(item.rules, item.areaId) -->

											<TD>1026
												<BR>104601</TD>
											<TD>王兴</TD>
											<TD>12</TD>
											<TD>3</TD>
											<TD>
												<SPAN class="label label-default">已结束</SPAN>
											</TD>
											<TD>未开始解散</TD>
											<TD>2018-03-16
												<BR>14:30:52</TD>
											<TD></TD>
											<TD>2018-03-16
												<BR>15:00:52</TD>
											<TD> &nbsp;&nbsp;
												<A href="#game/game/104/detail">明细</A>
											</TD>
										</TR>
										<TR>
											<TD>103</TD>
											<TD>曲阳</TD>
											<TD>麻将</TD>
											<TD>795683
												<BR>
											</TD>
											<!-- filter.getMajiangGameRules(item.rules, item.areaId) -->

											<TD>1023
												<BR>101726</TD>
											<TD>刘海涛</TD>
											<TD>8</TD>
											<TD>3</TD>
											<TD>
												<SPAN class="label label-default">已结束</SPAN>
											</TD>
											<TD>房主解散</TD>
											<TD>2018-03-15
												<BR>15:26:41</TD>
											<TD></TD>
											<TD>2018-03-15
												<BR>15:26:50</TD>
											<TD> &nbsp;&nbsp;
												<A href="#game/game/103/detail">明细</A>
											</TD>
										</TR>
										<TR>
											<TD>102</TD>
											<TD>曲阳</TD>
											<TD>麻将</TD>
											<TD>073823
												<BR>
											</TD>
											<!-- filter.getMajiangGameRules(item.rules, item.areaId) -->

											<TD>1023
												<BR>101726</TD>
											<TD>刘海涛</TD>
											<TD>8</TD>
											<TD>3</TD>
											<TD>
												<SPAN class="label label-default">已结束</SPAN>
											</TD>
											<TD>房主解散</TD>
											<TD>2018-03-15
												<BR>15:26:10</TD>
											<TD></TD>
											<TD>2018-03-15
												<BR>15:26:16</TD>
											<TD> &nbsp;&nbsp;
												<A href="#game/game/102/detail">明细</A>
											</TD>
										</TR>
										<TR>
											<TD>101</TD>
											<TD>曲阳</TD>
											<TD>麻将</TD>
											<TD>260866
												<BR>
											</TD>
											<!-- filter.getMajiangGameRules(item.rules, item.areaId) -->

											<TD>1023
												<BR>101726</TD>
											<TD>刘海涛</TD>
											<TD>8</TD>
											<TD>3</TD>
											<TD>
												<SPAN class="label label-default">已结束</SPAN>
											</TD>
											<TD>房主解散</TD>
											<TD>2018-03-15
												<BR>15:25:59</TD>
											<TD></TD>
											<TD>2018-03-15
												<BR>15:26:07</TD>
											<TD> &nbsp;&nbsp;
												<A href="#game/game/101/detail">明细</A>
											</TD>
										</TR>
										<TR>
											<TD>100</TD>
											<TD>曲阳</TD>
											<TD>牌九</TD>
											<TD>268146
												<BR>
											</TD>
											<!-- filter.getMajiangGameRules(item.rules, item.areaId) -->

											<TD>1009
												<BR>103867</TD>
											<TD>枫林</TD>
											<TD>12</TD>
											<TD>3</TD>
											<TD>
												<SPAN class="label label-default">已结束</SPAN>
											</TD>
											<TD>申请解散</TD>
											<TD>2018-03-14
												<BR>18:32:53</TD>
											<TD>2018-03-14
												<BR>18:33:09</TD>
											<TD>2018-03-14
												<BR>18:34:10</TD>
											<TD> &nbsp;&nbsp;
												<A href="#game/game/100/detail">明细</A>
											</TD>
										</TR>
									</TBODY>
								</TABLE>
								<INPUT id="page" type="hidden" value="1">
								<UL class="pagination pagination-sm pull-left no-bottom-margin no-top-margin" role="pagination">
									<!--前-->
									<LI class="disabled">
										<A href="#game/games#">«</A>
									</LI>
									<!--中-->

									<LI class="disabled">
										<A href="#game/games#">1</A>
									</LI>
									<!--当前页之后页码显示-->
									<LI data-page="2">
										<A>2</A>
									</LI>
									<LI data-page="3">
										<A>3</A>
									</LI>
									<LI class="disabled">
										<A href="#game/games#">…</A>
									</LI>

									<LI data-page="6">
										<A>6</A>
									</LI>
									<!--后-->
									<LI data-page="6">
										<A title="末页">»</A>
									</LI>
								</UL>
								<DIV class="modal fade" id="sureModal" role="dialog" style="z-index: 10000;">
									<DIV class="modal-dialog modal-sm">
										<DIV class="modal-content">
											<DIV class="modal-header">
												<H4 class="modal-title">确认要进行此操作吗?</H4>
											</DIV>
											<DIV class="modal-footer no-border" data-role="footer">
												<BUTTON class="btn btn-default" data-dismiss="modal">取消</BUTTON>
												<BUTTON class="btn btn-success confirm">确定</BUTTON> </DIV>
											<DIV class="modal-footer no-border" style="display: none;" data-role="loading">
												<IMG src="css/loading.gif">
											</DIV>
										</DIV>
									</DIV>
								</DIV>
								<SCRIPT type="text/javascript">
									function _confirmModal(evn, title, notClose) {
										$('#sureModal').modal('show');
										$('#sureModal .btn-success').unbind('click');
										$('#sureModal .btn-success').on('click', function() {
											evn();
											if(!notClose) {
												$('#sureModal').modal('hide');
												$('.modal-backdrop').hide();
											}
										});
										if(title) {
											$('#sureModal .modal-title').html(title);
										} else {
											$('#sureModal .modal-title').html('确认要进行此操作吗？');
										}
									}
								</SCRIPT>

								<SCRIPT type="text/javascript">
									$('ul[role=pagination] li').on('click', function() {
										var page = $(this).attr('data-page');
										if(page && !isNaN(parseInt(page))) {
											goPage(page);
										}
									});

									// 解散
									$('a[data-role=dismiss]').on('click', function() {
										var id = $(this).attr('data-id');
										dismissRoom(id, '1001');
									})
								</SCRIPT>
							</DIV>
							<DIV class="col-md-12 center-block text-center" role="dataLoading" style="display: none;">
								<IMG src="css/loading.gif"> </DIV>
						</DIV>
					</DIV>
					<!-- END: CONTENT -->
				</SECTION>
			</DIV>
			<!-- END: BODY -->
		</DIV>
		<!-- JS -->
		<SCRIPT src="js/jquery-ui.min.js"></SCRIPT>

		<SCRIPT src="js/jquery.uniform.min.js"></SCRIPT>

		<SCRIPT src="js/bootstrap.min.js"></SCRIPT>

		<SCRIPT src="js/jasny-bootstrap.min.js"></SCRIPT>

		<SCRIPT src="js/jquery.autosize.min.js"></SCRIPT>

		<SCRIPT src="js/moment.min.js"></SCRIPT>

		<SCRIPT src="js/daterangepicker.js"></SCRIPT>

		<SCRIPT src="js/bootstrap-datepicker.js"></SCRIPT>

		<SCRIPT src="js/fullcalendar.min.js"></SCRIPT>
		<!-- <script src="/manager/vendor/dropzone/dist/min/dropzone.min.js"></script> -->
		<SCRIPT src="js/select2.min.js"></SCRIPT>

		<SCRIPT src="js/base.js"></SCRIPT>
		<!-- <script src="/manager/js/ark.js"></script> -->
		<SCRIPT src="js/toastr.min.js"></SCRIPT>

		<SCRIPT src="js/admin.js"></SCRIPT>

		<SCRIPT src="js/build.js"></SCRIPT>

		<SCRIPT type="text/javascript">
			// 引入Pomelo
			require('boot');

			$('form').on('submit', function(e) {
				e.preventDefault();
				goPage(1);
			})
			/* 分页*/
			function goPage(number) {
				$('div[role=dataResult]').hide();
				$('div[role=dataLoading]').show();

				var num = $('input[name=num]').val();
				var id = $('input[name=id]').val();
				var accounts = $('input[name=id]').val();
				var name = $('select[name=name]').val();
				var status = $('select[name=status]').val();
				var timeStart = $('input[name=timeStart]').val();
				var timeEnd = $('input[name=timeEnd]').val();
				var url = '?page=' + number + '&radom=' + Date.now();
				if(num && !isNaN(parseInt(num))) {
					url += '&num=' + num;
				}
				if(id && !isNaN(parseInt(id))) {
					url += '&id=' + id;
				}
				if(accounts && !isNaN(parseInt(accounts))) {
					url += '&accounts=' + accounts;
				}
				if(name) {
					url += '&name=' + name;
				}
				if(status && !isNaN(parseInt(status))) {
					url += '&status=' + status;
				}
				if(timeStart && !isNaN(parseInt(timeStart))) {
					url += '&timeStart=' + timeStart;
				}
				if(timeEnd && !isNaN(parseInt(timeEnd))) {
					url += '&timeEnd=' + timeEnd;
				}
				$.ajax({
					url: url,
					type: 'get',
					success: function(result) {
						$('div[role=dataResult]').show();
						$('div[role=dataLoading]').hide();
						$('div[role=dataResult]').html(result)
						$("input:checkbox").uniform();
					}
				})
			}

			var host = '192.168.249.216';
			var port = '3014';

			// 创建房间
			function dismissRoom(id, uid, areaId) {
				_confirmModal(_initCreate, '确认要解散该房间吗？');

				function _initCreate() {
					$.get('/game/game/' + id, function(result) {
						if(result.code !== 0) {
							mind.alert(result.message, 'error');
							return;
						}
						var turl = '/game/player/' + uid + '/token';
						var room = result.game;
						$.get(turl, function(result) {
							if(result.code !== 0) {
								mind.alert(result.message, 'error');
								return;
							}
							authEntry(host, port, uid, result.token, function(data) {
								_dismissRoom(room);
							}, room.areaId);
						});
					});
				}

				/**
				 * 执行解散操作
				 */
				function _dismissRoom(room) {
					// 先硬编码，后期要优化
					var url = 'area.managerHandler.disbandRoom';
					if(room.areaId = 2) {
						url = 'quyang.managerHandler.disbandRoom';
					}

					pomelo.request(url, {
						rnum: room.number
					}, function(data) {
						if(data.code === 200) {
							mind.alert('操作成功', 'success');
							window.location.href = window.location.href;
						} else {
							mind.alert(data.msg || '操作失败', 'error');
						}
					});
				}
			}
		</SCRIPT>

		<SCRIPT src="js/pomelo.js"></SCRIPT>
	</BODY>

</HTML>